package com.sangmo.fts.process.inventory.service;

import com.sangmo.boot.framework.plugin.dataview.crud.service.BaseViewService;
import com.sangmo.boot.framework.plugin.dataview.data.IDataViewRepo;
import com.sangmo.fts.process.inventory.model.IfLadingBillItem;
import com.sangmo.fts.process.inventory.repo.IfLadingBillItemRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class IfLadingBillItemEntityService extends BaseViewService<IfLadingBillItem> {

    @Autowired
    private IfLadingBillItemRepo ladingBillItemRepo;

    @Override
    protected IDataViewRepo<IfLadingBillItem> getRepo() {
        return ladingBillItemRepo;
    }

    protected List<IfLadingBillItem> saveAll(List<IfLadingBillItem> ladingBillItems) {
        return ladingBillItemRepo.saveAll(ladingBillItems);
    }
}
